﻿using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NTmdb.TestProject
{
    /// <summary>
    ///     This is a test class for GenreFilterTest and is intended
    ///     to contain all GenreFilterTest Unit Tests
    /// </summary>
    [TestClass]
    public class GenreFilterTest
    {
        /// <summary>
        ///     A test for GenreFilter Constructor
        /// </summary>
        [TestMethod]
        public void GenreFilterConstructorTest()
        {
            var target = new GenreFilter();
            Assert.IsNotNull( target );
        }

        /// <summary>
        ///     A test for Genres
        /// </summary>
        [TestMethod]
        public void GenresTest()
        {
            var target = new GenreFilter();
            var expected = new List<int>();
            List<int> actual;
            target.Genres = expected;
            actual = target.Genres;
            Assert.AreSame( expected, actual );
        }

        /// <summary>
        ///     A test for Operator
        /// </summary>
        [TestMethod]
        public void OperatorTest()
        {
            var target = new GenreFilter();
            const TmdbFilterOperator expected = TmdbFilterOperator.And;
            target.Operator = expected;
            var actual = target.Operator;
            Assert.AreEqual( expected, actual );
        }
    }
}